-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add hash to end of resource names to avoid name clash #605
add hash to end of resource names to avoid name clash #605
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally the existing resources should be pruned, like during the operator upgrade. But I think that's acceptable.
I had this thought too. I can try my hand at writing an upgrade strategy for this |
fa02c39
to
b37b3bd
Compare
b37b3bd
to
ffbf30a
Compare
42f243e
to
33855ed
Compare
I guess the new names should be reflected into Ray cluster the webhook. |
Overall LGTM, just left a comment on the hash seed, and to update the Ray cluster webhook accordingly. |
33855ed
to
19269cb
Compare
I think this is taken care of already by using the |
19269cb
to
1f8e331
Compare
Ah OK, I thought it could explain why the e2e failed. |
1f8e331
to
0d7b8be
Compare
The tests also needed to be changed to use the |
42d9a82
to
d9f9150
Compare
5dd4666
to
b1a1fda
Compare
@astefanutti This should be g2g now |
2b020b4
to
eff323b
Compare
70f4778
to
4d57ade
Compare
Annotations: map[string]string{ | ||
versionAnnotation: "0.0.0", | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you remove this annotation from here?
RayCluster CR created by used or SDK won't have the annotation defined. To reproduce the behavior we shouldn't provide it here either.
@@ -46,6 +46,9 @@ func TestRayClusterWebhookDefault(t *testing.T) { | |||
ObjectMeta: metav1.ObjectMeta{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you set operator version into rcWebhook
above?
}, | ||
}, | ||
Spec: rayv1.RayClusterSpec{}, | ||
} | ||
validRayCluster := &rayv1.RayCluster{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no action comment
Using annotation and functions for validRayCluster
is correct as those values are set by default webhook.
also added a version annotation to raycluster for the CFO version Signed-off-by: Kevin <[email protected]>
4d57ade
to
cbd36e5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: astefanutti The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
7f00118
into
project-codeflare:main
Issue link
https://issues.redhat.com/browse/RHOAIENG-10129
What changes have been made
created a function which takes a string and appends the controller name to it then hashes it to use as a suffix for the resources created by this controller to avoid naming conflicts
Verification steps
Checks